//
//  HY_RootViewController.m
//  mhkjjsd
//
//  Created by 凤利史 on 2018/5/22.
//  Copyright © 2018年 sunrose. All rights reserved.
//

#import "HY_RootViewController.h"

@interface HY_RootViewController ()
Strong UITextField *yuYueTextField;//预约
@end

@implementation HY_RootViewController
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    
    
    [self.navigationController setNavigationBarHidden:YES animated:NO];
    
    
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self creationView];
    // Do any additional setup after loading the view.
}
- (void)creationView{
    
    UILabel *titleLabel = [[UILabel alloc] init];
    [self.view addSubview:titleLabel];
    titleLabel.text = @"会员管理";
    titleLabel.textColor = getColor(@"333333");
    titleLabel.font = [UIFont fontWithName:@"DINEngschrift LT Alternate" size:17];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).with.offset(15);
        make.top.equalTo(self.view).with.offset((KIsiPhoneX?24:0)+20);
        
    }];
    UIView *findView = [[UIView alloc] init];
    [self.view addSubview:findView];
    [findView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).with.offset(15);
        make.top.equalTo(titleLabel.mas_bottom).with.offset(19);
        make.right.equalTo(self.view).with.offset(-15);
        make.height.offset(35);
        
    }];
    findView.backgroundColor = getColor(@"F2F2F2");
    findView.layer.cornerRadius = 4.0f;
    findView.layer.masksToBounds = YES;
    
    UIImageView *souSuoImgView = [[UIImageView alloc] init];
    [findView addSubview:souSuoImgView];
    UIImage *img = [UIImage imageNamed:@"home_search_icon"];
    [souSuoImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(findView).with.offset(15);
        make.centerY.equalTo(findView);
        make.width.offset(img.size.width);
        make.height.offset(img.size.height);
        
    }];
    souSuoImgView.image = [UIImage imageNamed:@"home_search_icon"];
    
    self.yuYueTextField = [[UITextField alloc] init];
    [findView addSubview:self.yuYueTextField];
    [self.yuYueTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(souSuoImgView.mas_right).with.offset(5);
        make.right.equalTo(findView).with.offset(-15);
        make.centerY.equalTo(findView);
        ;
    }];
    self.yuYueTextField.placeholder = @"搜索会员";
    //    self.yuYueTextField.textColor = getColor(@"999999");
    self.yuYueTextField.font = [UIFont systemFontOfSize:14];
    
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
